#coding: utf-8
import calendar

def mToInt(value):
    try: return int(value)
    except: return None

def days_in_month(month_no, year): return calendar.monthrange(year, month_no)[1]
